8380366cc2e821e491beb0529b46068932196766,xml/impl/src/com/intellij/codeInsight/completion/XmlTagInsertHandler.java,XmlTagInsertHandler,addRequiredAttributes,#XmlElementDescriptor#XmlTag#Template#PsiFile#,197

Before Change



    if (tag instanceof HtmlTag) {
      final InspectionProfile profile = InspectionProjectProfileManager.getInstance(tag.getProject()).getInspectionProfile();
      LocalInspectionToolWrapper localInspectionToolWrapper = (LocalInspectionToolWrapper) profile.getInspectionTool(
        RequiredAttributesInspection.SHORT_NAME, tag);
      RequiredAttributesInspection inspection = localInspectionToolWrapper != null ?
        (RequiredAttributesInspection) localInspectionToolWrapper.getTool(): null;

      if (inspection != null) {
        StringTokenizer tokenizer = new StringTokenizer(inspection.getAdditionalEntries(0));

After Change



    if (tag instanceof HtmlTag) {
      final InspectionProfile profile = InspectionProjectProfileManager.getInstance(tag.getProject()).getInspectionProfile();
      RequiredAttributesInspection inspection = (RequiredAttributesInspection)profile.getUnwrappedTool(
        RequiredAttributesInspection.SHORT_NAME, tag);

      if (inspection != null) {
        StringTokenizer tokenizer = new StringTokenizer(inspection.getAdditionalEntries(0));